#pragma once

#define MAX_BUFFER_SIZE 10240

class Buffer
{
public:
	Buffer();
	~Buffer();

	int pushData(const char *_b, unsigned int _s);
	int popData(char *_b, unsigned int _s);
	int mustPopData(char *_b, unsigned int _s);
	int lookData(char *_b, unsigned int _s);
	unsigned int size();

private:
	char *buf;
	unsigned int len;
};


